<style>
    #incentiveQuotaConfig-edit .layui-form-label{
        width:100px;
    }
    #incentiveQuotaConfig-edit .layui-input-block{
        margin-left: 130px;
    }
    #incentiveQuotaConfig-edit .layui-table-box{
        min-height: 200px;
        max-height: 300px;
        overflow-y: auto;
    }
</style>
<div class="febs-container" id="incentiveQuotaConfig-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="incentiveQuotaConfig-edit-form">
            <div class="layui-form-item febs-hide">
                <div class="layui-row">
                    <div class="layui-col-sm6">
                        <label class="layui-form-label febs-form-item-require">id：</label>
                        <div class="layui-input-block">
                            <input type="text" name="quotaConfigId" class="layui-input">
                        </div>
                    </div>

                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <div class="layui-row">
                    <div class="layui-col-sm6">
                        <label class="layui-form-label febs-form-item-require">公司Id：</label>
                        <div class="layui-input-block">
                            <input type="text" name="tenantId" class="layui-input">
                        </div>
                    </div>

                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">额度年份：</label>
                        <div class="layui-input-block">
                            <input type="text" placeholder="请选择年份" id="year" name="year" class="layui-input"
                                   lay-verify="required"  maxlength="4">
                        </div>
                    </div>
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">开单人姓名：</label>
                        <div class="layui-input-block layui-input-icon-container" style="position: relative">
                            <input type="text" name="realName" id="realName" autocomplete="off"
                                   class="layui-input " lay-verify="required" onchange=""
                                   minlength="2" maxlength="10"  placeholder="请选择人员">
                            <div class="layui-input-suffix" id="addBtn">
                                <i class="layui-icon layui-icon-add-1"></i>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs6 febs-hide">
                        <label class="layui-form-label">userId：</label>
                        <div class="layui-input-block">
                            <input type="text" name="userId" autocomplete="off" class="layui-input" maxlength="32">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide" id="hideInfoDiv">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label ">开单人工号：</label>
                        <div class="layui-input-block layui-input-block-html" id="userNoDiv" data-th-text="--">
                        </div>
                    </div>
                    <div class="layui-col-xs6">
                        <label class="layui-form-label">开单人部门：</label>
                        <div class="layui-input-block layui-input-block-html" id="deptNameDiv" data-th-text="--">
                        </div>
                    </div>
                    <div class="layui-col-xs6 febs-hide">
                        <div class="layui-input-block">
                            <input type="text" name="deptId" autocomplete="off" class="layui-input" maxlength="32">
                            <input type="text" id="userNo" name="userNo" autocomplete="off" class="layui-input">
                            <input type="text" id="deptName" name="deptName" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">罚奖比例(%)：</label>
                        <div class="layui-input-block">
                            <input type="text" placeholder="请输入罚款奖金比例" name="penaltyBonusRatio" class="layui-input" onkeyup="value=value.replace(/[^\d]/g,'')"
                                   lay-verify="required"  maxlength="4">
                        </div>
                    </div>
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">总额度(元)：</label>
                        <div class="layui-input-block">
                            <input type="text" placeholder="请输入总额度" name="totalQuota" class="layui-input" onkeyup="value=value.replace(/[^\d]/g,'')"
                                   lay-verify="required"  maxlength="8">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">奖品选择：</label>
                        <div class="layui-input-block">
                            <input type="checkbox" id="goodsRewardFlg" name="goodsRewardFlg" lay-skin="switch" lay-text="是|否" lay-filter="goodsRewardFlg">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide" id="quotaGoodsDiv">
                <div class="layui-row">
                    <label class="layui-form-label">安全奖品：</label>
                    <div class="layui-input-block" style="">
                        <table lay-filter="quotaGoodsTable" id="quotaGoodsTable"></table>
                    </div>
                </div>
                <div class="layui-row">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn layui-btn-sm" id="addGoods">
                            <span class="layui-icon layui-icon-add-1" ></span>奖品选择
                        </button>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-row">
                    <div class="layui-col-xs6">
                        <label class="layui-form-label febs-form-item-require">额度状态：</label>
                        <div class="layui-input-block">
                            <input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用" checked="checked">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="incentiveQuotaConfig-edit-form-submit" id="submit"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="quotaGoods-option">
    <a lay-event="del" ><em class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>
<script data-th-inline="javascript">
    var incentiveQuotaConfigData = [[${incentiveQuotaConfig}]];
</script>
<script th:src="@{/febs/js/incentive/incentiveQuotaConfig/incentiveQuotaConfigEdit.js(v=1)}"></script>